# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-responses
pkgver=0.14.0
pkgrel=1
pkgdesc="Utility library for mocking out the requests Python library"
url="https://pypi.python.org/pypi/responses/"
arch="noarch"
license="Apache-2.0"
depends="
	py3-requests
	py3-six
	"
makedepends="py3-setuptools"
checkdepends="
	py3-flake8
	py3-pytest
	py3-pytest-cov
	py3-pytest-localserver
	py3-werkzeug
	"
source="https://github.com/getsentry/responses/archive/$pkgver/responses-$pkgver.tar.gz"
builddir="$srcdir/responses-$pkgver"

replaces=py-responses # Backwards compatibility
provides=py-responses=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0582a9e3f3b0e2e8a29e5f88c240f449c19466763bcfcdacd17aac34798dcab8e84e39c56a68a6f41671ac64f3f63f7ba899b12647cbd0b6116c80d168dbbb31  responses-0.14.0.tar.gz
"
